# Michael Depuy
# depuym@onid.orst.edu
# CS344-400
# Homework 6

import sys
import os
import socket
import subprocess

HOST_ADDR = "128.193.37.0"
PORT = 9879
PORT_STR = "9879"

sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
print "Connecting..."
sock.connect((HOST_ADDR,PORT))
print "Connected. Sending information..."
conn = "Connection from 'report.py'"
sock.send(conn)
print "Information sent. Now receiving..."
data = sock.recv(1024)
print data
print "Sending final message."
data = "Sending back a string"
sock.send(data)
print "Data sent. Now closing."
sock.close()
